﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HTTT.DataAccess;
using HTTT.Utilities;
using HTTT.AD;

namespace HTTT.Bussiness
{
    public class HT_OperatorBO
    {

        public IEnumerable<HT_Operator> GetAllHT_Operator()
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.GetAllHT_Operator();
        }
        public HT_Operator GetHT_OperatorById(Guid id)
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.GetHT_OperatorByID(id);
        }
        public bool InsertHT_Operator(HT_Operator inHT_Operator)
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.InsertHT_Operator(inHT_Operator);
        }
        public bool UpdateHT_Operator(HT_Operator inHT_Operator)
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.UpdateHT_Operator(inHT_Operator);
        }

        public ReturnValue<bool> DeleteHT_Operator(Guid id)
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.DeleteHT_Operator(id); 
        }

        public IEnumerable<HT_Operator> SearchHT_Operator(string keyword)
        {
            HT_OperatorDAO _dao = new HT_OperatorDAO();
            return _dao.SearchHT_Operator(keyword);
        }
    }
}
